import axios from "axios"


// export interface Seller {
//     name:string
//     avatar:string
//     bulletin:string
//     description:string
//     deliveryPrice:number
//     deliveryTime:number
//     supports:{}[]
//     infos:{}[]
//     pics:{}[]
//     minPrice:number
//     foodScore:number
//     ratingCount:number
//     sellCount:number
// }
// export interface SellerData {
//     errno:number
//     data:Seller
// }



export const getSellerApi = () => {
    return axios.get('/api/seller')
}

export const getGoodsApi = () => {
    return axios.get('/api/goods')
}

export const getCommentApi = () => {
    return axios.get('/api/ratings')
}